<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Symbol</title>
</head>
<body>
<script type="text/javascript">
    const name = Symbol('name');
    const name2 = Symbol('name');
    console.log(name === name2);//false
    let obj = {
        [name]:'a'
    }
    for (val in obj) {
        console.log(val);
    }
    console.log(Object.getOwnPropertySymbols(obj));
    console.log(Reflect.ownKeys(obj)[0]);
</script>
</body>
</html>